Action hook 'update_site_option_{$option}'
in WP Core File wp-includes/option.php at line 2404
Description
Fires after the value of a specific network option has been successfully updated. The dynamic portion of the hook name, `$option`, refers to the option name.
Occurrences
Filename |
Line Number |
wp-includes/option.php |
2404 |
Parameters
Type |
Name |
Description |
string |
$option |
Name of the network option. |
mixed |
$value |
Current value of the network option. |
mixed |
$old_value |
Old value of the network option. |
int |
$network_id |
ID of the network. |
PHP Doc
/**
* Fires after the value of a specific network option has been successfully updated.
*
* The dynamic portion of the hook name, `$option`, refers to the option name.
*
* @since 2.9.0 As "update_site_option_{$key}"
* @since 3.0.0
* @since 4.7.0 The `$network_id` parameter was added.
*
* @param string $option Name of the network option.
* @param mixed $value Current value of the network option.
* @param mixed $old_value Old value of the network option.
* @param int $network_id ID of the network.
*/